package com.ruoyi.common.dingtalk.autoconfigure;


import com.ruoyi.common.dingtalk.template.DingtalkTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import cn.lgc.pojo.properties.DingtalkSettingProperties;


/**
 * 钉钉钉自动配置
 *
 * @author 陈立高
 * @date 2024/03/25
 */
@Configuration
@EnableConfigurationProperties(DingtalkSettingProperties.class)
public class DingtalkAutoConfiguration {
    @Bean
    public DingtalkTemplate dingtalkTemplate(DingtalkSettingProperties dingtalkSettingProperties) {
        return new DingtalkTemplate(dingtalkSettingProperties);
    }


}
